package org.lq.er.service.impl;
import java.util.List;
import java.util.Random;

import org.lq.er.dao.Exam_informationDao;
import org.lq.er.dao.impl.Exam_informationDaoImpl;
import org.lq.er.entity.Exam_information;
import org.lq.er.service.Exam_informationService;
/**
 * 
 * @author 韩伟伟
 *
 * @package org.lq.er.service.impl
 */
public class Exam_informationServiceImpl implements Exam_informationService<Exam_information> {
	private Exam_informationDao<Exam_information> eimdao = new Exam_informationDaoImpl();
	@Override
	public boolean save(Exam_information t) {
		return eimdao.save(t)>0;
	}

	@Override
	public boolean update(Exam_information t) {
		return eimdao.update(t)>0;
	}

	@Override
	public boolean delete(int id) {
		return eimdao.delete(id)>0;
	}

	@Override
	public List<Exam_information> findAll() {
		return eimdao.findAll();
	}

	@Override
	public Exam_information getById(int id) {
		return eimdao.getById(id);
	}

	@Override
	public Exam_information getByExam_position_id(int epid) {
		return eimdao.getByExam_position_id(epid);
	}
	@Override
	public Exam_information getByStu_Id(String stuid) {
		return eimdao.getByStu_Id(stuid);
	}
	
}
